package com.ltg.urban.domain.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ltg.urban.domain.project.data.response.ProjectPageResp;
import com.ltg.urban.domain.project.entity.UrbanProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p> ClassName: UrbanProjectMapper </p>
 * <p> Package: com.ltg.urban.domain.project.mapper </p>
 * <p> Description: </p>
 * <p></p>
 *
 * @Author: LTG
 * @Create: 2023/2/22 - 21:49
 * @Version: v1.0
 */
@Mapper
public interface UrbanProjectMapper extends BaseMapper<UrbanProject> {
    Page<ProjectPageResp> pageList(Page<ProjectPageResp> page,
                                   @Param("userId") Long userId,
                                   @Param("roleName") String roleName,
                                   @Param("status") Integer status,
                                   @Param("approveResult") Integer approveResult,
                                   @Param("projectName")String projectName);


    UrbanProject selectByProjectId(@Param("projectId") Long projectId);

}
